package com.lzb.musicplayer.adapter;

import android.graphics.Bitmap;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.lzb.basic.ProviderMultiAdapter;
import com.lzb.musicplayer.R;
import com.lzb.musicplayer.bean.MusicFile;
import com.lzb.musicplayer.bean.PlayListBean;
import com.lzb.musicplayer.utils.MusicScannerUtil;

public class AddPlaylistAdapter extends ProviderMultiAdapter<PlayListBean> {

    public AddPlaylistAdapter() {
        addItemProvider(new AddPlaylistProvider());
    }

    private class AddPlaylistProvider extends BaseItemProvider<PlayListBean> {
        @Override
        public int getItemViewType() {
            return ProviderMultiAdapter.TYPE_VIEW;
        }

        @Override
        public int getLayoutId() {
            return R.layout.item_add_playlist;
        }

        @Override
        public void convert(@NonNull BaseViewHolder baseViewHolder, PlayListBean bean) {
            baseViewHolder.setText(R.id.tvAddPlaylistItemName, bean.getName());
        }
    }
}